<?php
$server = "localhost";
$uname = "root";
$umm = "root";
$db = "maxik";
$con = mysqli_connect($server, $uname, $umm, $db);
$id = $_GET['id'];
$del="delete  from table2 where id=".$id; 
$del_ok=mysqli_query($con,$del);
if ($del_ok){
    echo "删除成功！";
}else{
    echo "删除失败！";
}
